{#继承基础模板，一定要放在第一行，不然会报错，显示不出来#}
{% extends "demo/base.html" %}

{#重写header块#}
{% block header %}
    {#    引用拆分出来的功能板块 #}
    {% include "demo/header.html" %}
{% endblock %}
{% block main %}
    {% include "demo/classes.html" %}
    <div>
        <h4>{{ block.super }}</h4>
        <h4>资源头条</h4>
        <h4>精选博客</h4>
        <h4>开源项目</h4>
    </div>
{% endblock %}